# Contributor: Mari Hahn <mari.hahn@wwu.de>
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=tint2
pkgver=17.1.3
pkgrel=1
pkgdesc="tint2 is a simple unintrusive panel/taskbar"
url="https://gitlab.com/nick87720z/tint2/"
arch="all"
license="GPL-2.0-only"
options="!check"
makedepends="
	cairo-dev
	cmake
	glib-dev
	gtk+3.0-dev
	imlib2-dev
	librsvg-dev
	libxcomposite-dev
	libxdamage-dev
	libxinerama-dev
	libxrandr-dev
	linux-headers
	pango-dev
	samurai
	startup-notification-dev
	"
subpackages="$pkgname-doc $pkgname-lang"
source="$pkgname-$pkgver-2.tar.bz2::https://gitlab.com/nick87720z/tint2/-/archive/$pkgver/tint2-$pkgver.tar.bz2"
builddir="$srcdir/tint2-$pkgver"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_SYSCONFDIR=/etc \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
3405c32fd3e19b6ccb690406f19a00f4e95357d3c761227ac4a30b42fa20ffeb8974165815c3a4d50ae874252e593ef4fe4e5af8a5adba3d8d2820a6f479c045  tint2-17.1.3-2.tar.bz2
"
